package com.gsm.projects.jobDw;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class TestJdbc {

    public static void main(String[] args) throws SQLException, ClassNotFoundException {

//        Class.forName("com.mysql.jdbc.Driver");

        // 数据库配置
        String url = "jdbc:mysql://localhost:3306/db_job_realtime_statistics?useSSL=false&serverTimezone=UTC";
        String user = "root";
        String password = "123456";

        Connection connection = DriverManager.getConnection(url, user, password);
        System.out.println(connection);


    }
}
